<!DOCTYPE HTML>
<html>
<head>
	<meta charset="UTF-8">
	<title>Office Supplies</title>
        <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.17/themes/base/jquery-ui.css" type="text/css" media="all" />
	<link href="<?php echo SITEURL; ?>css/reset-min.css" rel="stylesheet" id="css-reset">
	<link href="<?php echo SITEURL; ?>css/jquery.fancybox.css" rel="stylesheet" id="css-fancybox">
	<link href="<?php echo SITEURL; ?>css/aw_sc.css" rel="stylesheet" id="css-awsc">
	<link href="<?php echo SITEURL; ?>css/styles.css" rel="stylesheet" id="css-main">
	<link href="<?php echo SITEURL; ?>css/password_checker.css" rel="stylesheet" id="css-main">
	<script charset="utf-8" type="text/javascript" src="<?php echo SITEURL; ?>js/jquery-1.5.min.js" id="js-jquery15"></script>
        <script charset="utf-8" type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js" id="js-jquery15"></script>
	<script charset="utf-8" type="text/javascript" src="<?php echo SITEURL; ?>js/jquery.fancybox.js" id="js-fancybox"></script>
	<script charset="utf-8" type="text/javascript" src="<?php echo SITEURL; ?>js/jquery.aw-showcase.min.js" id="js-aw_sc"></script>
	<script charset="utf-8" type="text/javascript" src="<?php echo SITEURL; ?>js/password_checker.js" id="js-ps_ch"></script>
	<?php include "js/script.js.php"; ?>
	</head>
<body>
	<div class="wrapper">
		<div class="header">
			<div class="mblock clearfix">
				<div class="lblock sitelogo">
					<a href="<?php echo SITEURL; ?>">
						<img src="<?php echo SITEURL; ?>images/logo.jpg" alt="Stationaries" />
					</a>
				</div>
				<div class="rblock storeauth">
					<div class="topmenu">
						<?php
							if(isset($_SESSION['user_id']))
							{
						?>
                        <!-- <strong><?php echo $_SESSION['user_email']?></strong> |--> 
						<a href="<?php echo SITEURL; ?>index.php/?logout">Logout</a>
						<?php
							} else {
						?>
						<a href="<?php echo SITEURL; ?>index.php/?register" class="empha">Join</a> | <a href="<?php echo SITEURL; ?>index.php?login"  class="empha">Login</a>
						<?php } ?>
					</div>
					<div id="loader" style="display: none;"></div>
					<div class="cartInfo">
						<div class="inner clearfix">
							<div class="cartItems"><strong><?php echo CommonFunc::getcartcount();?></strong> item(s)</div>
							<?php if(CommonFunc::getcartcount()) : ?>
							<a href="<?php echo SITEURL; ?>index.php/?showcart" class="checkout">Checkout</a>
							<?php endif; ?>
						</div>
					</div>
				</div>
				<div class="cblock search">
					<div class="topmenu">
						<a href="<?php echo SITEURL; ?>index.php">Home</a> | <a href="<?php echo SITEURL; ?>index.php/?showcart">Shopping Cart</a> 
						<?php
							if(isset($_SESSION['user_id']))
							{
						?>
						
						<?php 
							} 
						?> | <a href="<?php echo SITEURL; ?>index.php/?contact">Contact us</a>
						 | <a href="<?php echo SITEURL; ?>index.php/?about">About us</a>
					</div>
					<div class="searchbox">
						<form action="<?php echo SITEURL; ?>index.php?textsearch" method="post" class="clearfix">
							<input type="text" name="searchkeyword" id="searchinput" />
							<input type="submit" value="Search" id="searchbutton" />
						</form>
					</div>
				</div>
			</div>
		</div>
		<div class="sitecontent">
			<?php
				if(isset($_SESSION['user_id']))
				{
			?>
			<div class="userlogedIn mblock clearfix" style="margin: 0 10px 10px; border: 1px solid #B3B3B3; padding: 5px; border-radius: 2px; background-color: #F4F4F4; border:1px solid #B3B3B3;">
				<div class="lblock">Welcome <strong style="font-weight: bold;"><?php echo $_SESSION['user_lastname']?></strong></div> <div class="rblock"><a href="<?php echo SITEURL; ?>index.php/?editprofile">Account Settings</a> | <a href="<?php echo SITEURL; ?>index.php/?extranetorderlist">Order History</a> | <a href="<?php echo SITEURL; ?>index.php/?logout">Logout</a></div>
			</div>
			<?php } ?>
			<div class="mblock clearfix">